<?php

use yii\db\Schema;
use yii\db\Migration;

class m160129_072421_add_solution_old_budget extends Migration
{
    public function up()
    {
        $this->addColumn("{{%solution}}", "old_budget", "decimal(12,2) DEFAULT '0' COMMENT '记录编辑之前策略预算值' after solution_audit");
        return true;
    }

    public function down()
    {
        $this->dropColumn("{{%solution}}", "old_budget");
        return true;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
